package cn.dnuihyy406.dnuifood_16110100406.service;

import java.util.List;

import cn.dnuihyy406.dnuifood_16110100406.bean.FoodBean;
import cn.dnuihyy406.dnuifood_16110100406.bean.GetCommentBean;
import cn.dnuihyy406.dnuifood_16110100406.bean.ResultBean;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

public interface GetfoodService {
    @GET("getFoodById.do")
    Call<FoodBean> getFoodById(
            @Query("food_id") String food_id);

    @GET("getAllCommentsByFood.do")
    Call<List<GetCommentBean>> getAllCommentsByFood(
            @Query("food_id") String food_id);

    @GET("insertOrder.do")
    Call<ResultBean> insertOrder(
            @Query("user_id") String user_id,
            @Query("food_id") String food_id,
            @Query("num") String num,
            @Query("sum") String sum,
            @Query("suggesttime") String suggesttime,
            @Query("address") String address);
}